package com.parse.ast;

import com.lex.Token;

public class MethodDeclarationASTNode extends ASTNode {

    /**
     * 方法体
     */
    public ASTNode methodBody;

    /**
     * public private等修饰符
     */
    public Modify modify;

    public ASTNode returnType;

    public ASTNode parameterList;

    public ASTNode getParameterList() {
        return parameterList;
    }

    public void setParameterList(ASTNode parameterList) {
        this.parameterList = parameterList;
    }

    public ASTNode getMethodBody() {
        return methodBody;
    }

    public void setMethodBody(ASTNode methodBody) {
        this.methodBody = methodBody;
    }

    public Modify getModify() {
        return modify;
    }

    public void setModify(Modify modify) {
        this.modify = modify;
    }

    public ASTNode getReturnType() {
        return returnType;
    }

    public void setReturnType(ASTNode returnType) {
        this.returnType = returnType;
    }

    public MethodDeclarationASTNode(ASTNodeType type) {
        super(type);
    }

    public MethodDeclarationASTNode(ASTNodeType type, Token token) {
        super(type, token);
    }

    public MethodDeclarationASTNode(ASTNodeType type, Token token, ASTNode parent) {
        super(type, token, parent);
    }
}
